﻿using Halcon二次开发.Model.储放所有单例.储存每个单例界面;
using Halcon二次开发.Model;
using Halcon二次开发;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 可视化工具.View.创建工程
{
    public partial class CreateForms : Form
    {
        //工程名称
        public string name="";
        public CreateForms()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "" || StaicResouce.FilesName.Keys.Contains(textBox1.Text))
            {
                MessageBox.Show("文件名称为空或重复文件名称!");
                this.Close();
                return;
            }
            name = textBox1.Text;
            string path = $@"Data\工程文件\{textBox1.Text.Trim()}工程文件";
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
